package vip.finance.makemoney.apiSpider.snowball;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author 杨滨
 * @date 2023年02月24日
 */
@Data
public class SnowEtfRes implements Serializable {
    /**
     * error_code : 0
     * error_description :
     */

    private DataBean data;
    private int error_code;
    private String error_description;

    @Data
    public static class DataBean implements Serializable {
        /**
         * count : 769
         */

        private int count;
        private List<ListBean> list;

        @Data
        public static class ListBean implements Serializable {
            /**
             * symbol : SH511990
             * amount : 7.385266355526E9
             * chg : 0.01
             * acc_unit_nav : null
             * expiration_time : null
             * rating : null
             * etf_types : ["283001","283013002","283008","283019","283030"]
             * type : 13
             * percent : 0.01
             * tick_size : 0.001
             * has_follow : false
             * volume : 73849379
             * current : 100.007
             * current_year_percent : -0.01
             * etf_parent_type : null
             * followers : 101827
             * name : 华宝添益ETF
             * market_capital : 1.193365129712E11
             * premium_rate : 0.01
             * lot_size : 100
             * unit_nav : 100
             * total_shares : 1193281600
             * timestamp : 1677209390070
             */
            private String symbol;
            private BigDecimal amount;
            private BigDecimal chg;
            private Object acc_unit_nav;
            private Object expiration_time;
            private Object rating;
            private int type;
            private BigDecimal percent;
            private BigDecimal tick_size;
            private boolean has_follow;
            private BigDecimal volume;
            private BigDecimal current;
            private BigDecimal current_year_percent;
            private Object etf_parent_type;
            private int followers;
            private String name;
            private BigDecimal market_capital;
            private BigDecimal premium_rate;
            private BigDecimal lot_size;
            private BigDecimal unit_nav;
            private BigDecimal total_shares;
            private long timestamp;
            private List<String> etf_types;
        }
    }
}
